import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false
import store from './store';
import * as filtersObj from '@/common/filters/index.js';
import {router,RouterMount} from '@/common/router/index.js';
import zhouWeiNavBar from "@/uni_modules/zhouWei-navBar/components/zhouWei-navBar/zhouWei-navBar.vue";
Vue.use(router)

//注册全局过滤器
for (let key in filtersObj) {
  Vue.filter(key, filtersObj[key]);
}

// 挂载全局函数
Vue.component('nav-bar', zhouWeiNavBar);

App.mpType = 'app'

const app = new Vue({
	...App,
	store,
	router
})

// #ifdef H5
	RouterMount(app,router,'#app')
// #endif

// #ifndef H5
	app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif